package cn.sirun.com.fca.personal.center.block.item.impl;

import com.tencent.cloud.iov.recycler.item.IBlockItem;
import com.tencent.cloud.iov.util.ObjectUtils;

import java.util.List;

import cn.sirun.com.fca.personal.center.block.item.INoticeSettingListItem;
import cn.sirun.com.fca.personal.center.block.item.IPersonalOptionsListItem;

public class NoticeSettingListItem implements INoticeSettingListItem{
    private final List<IBlockItem> mSetItems;

    public NoticeSettingListItem(List<IBlockItem> setItems) {
        mSetItems = setItems;
    }

    @Override
    public List<IBlockItem> getSetItems() {
        return mSetItems;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        NoticeSettingListItem that = (NoticeSettingListItem) o;
        return ObjectUtils.equals(mSetItems, that.mSetItems);
    }

    @Override
    public int hashCode() {
        return ObjectUtils.hash(mSetItems);
    }
}
